<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>[%$lngpack.forumtitle%] - [%$lngpack.sitename%]</title>
<meta name="keywords" content="[%$lngpack.keyword%]" />
<meta name="description" content="[%$lngpack.description%]" />
<link href="[%$url%]templates/greenhotel/style/user.css?v=[%$softversion%]" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="[%$url%]templates/greenhotel/js/jquery.js?v=[%$softversion%]"></script>
<script type="text/javascript" src="[%$url%]js/basicrun.js?v=[%$softversion%]"></script>
<script type="text/javascript">
var active_menu = "insider";
</script>
</head>

<body>
[%include file="greenhotel/cn/public/head.html"%]
	[%if $out=='forumindex'%]
    <div id="pageNav" class="maxWidth">
        <p>您现在的位置：首页 &raquo; [%$lngpack.forumtitle%]</p>
    </div>
	<div class="clearLine10"></div>
    <div class="maxWidth">
		<div id="framecenter">
		<div class="tbottonlist">
			<div class="tg">有问必答分类</div>
			[%beark name=bbstypelist class=$lng,0%]
		</div>
		<div class="userright">
            [% if count($typelist) > 0 %]
			[%forlist from=$typelist key=i%]
				<div class="filterorder">
				   <div class="filterbox"><span class="t"><a title="[%$typelist[i].typename%]" href="[%$typelist[i].link%]">[%$typelist[i].typename%]</a></span><span class="f"><a href="[%$typelist[i].addlink%]"><u>我要提问</u></a></span>
					</div>
				</div>
                <table>
                [% if $typelist[i].bbslist|count > 0 %]
                [%forlist from=$typelist[i].bbslist key=ii%]
                <tr>
                    <td class="s2">
                        <img src="[%$url%]templates/greenhotel/images/[%$typelist[i].bbslist[ii].blid%].gif" />【[%$typelist[i].bbslist[ii].labelname%]】
                        <a class="infolist" href="[%$typelist[i].bbslist[ii].link%]" title="[%$typelist[i].bbslist[ii].title%]">[%$typelist[i].bbslist[ii].title|cutstr(40,'...')%]</a>（[%$typelist[i].bbslist[ii].click%]阅/[%$typelist[i].bbslist[ii].replynum%]回）
                    </td>
                    <td class="s1" style="text-align:left; padding-left:8px; padding-right:0;"><u>[%$typelist[i].bbslist[ii].author%]</u> 于 [%$typelist[i].bbslist[ii].addtime|timeformat(3)%]</td>
                </tr>
                [%/forlist%]
                [%else%]
                <tr>
                    <td colspan="2">暂无问答</td>
                </tr>
                [%/if%]
            </table>
			[%/forlist%]
			[%/if%]
		</div>
	</div>
    </div>
	[%elseif $out=='forumlist'%]
	<!--有问必答列表-->
	<div id="pageNav" class="maxWidth">
		<p>您现在的位置：[%beark name=path class=$lng,forum,$type.btid%]</p>
	</div>
    <div class="clearLine10"></div>
	<div class="maxWidth">
		<div id="framecenter">
        <div class="tbottonlist">
            <div class="tg">有问必答分类</div>
            [%beark name=bbstypelist class=$lng,$type.btid%]
        </div>
		<div class="userright">
				<div class="filterorder">
                	<div class="filterbox">
						<span class="t">[%$type.typename%]</span>
						<span class="f"><a href="[%$type.addlink%]"><u>我要提问</u></a></span>
                    </div>
				</div>
			[% if count($array) > 0 %]
				<table>
					[%forlist from=$array key=ii%]
					<tr>
						<td class="s2">
							<img src="[%$url%]templates/greenhotel/images/[%$array[ii].blid%].gif" />【[%$array[ii].labelname%]】
							<a class="infolist" href="[%$array[ii].link%]" title="[%$array[ii].title%]">[%$array[ii].title|cutstr(40,'...')%]</a>（[%$array[ii].click%]阅/[%$array[ii].replynum%]回）
						</td>
						<td class="s1" style="text-align:left; padding-left:8px; padding-right:0;"><u>[%$array[ii].author%]</u> 于 [%$array[ii].addtime|timeformat(3)%]</td>
					</tr>
					[%/forlist%]
                    <tr>
                    	<td colspan="2"><div class="pagelink">[%$pagebotton%]</div></td>
                    </tr>
				</table>
			[%/if%]
		</div>
	</div>
    </div>
	[%elseif $out=='forumread'%]
	<!--有问必答阅读-->
	<script type="text/javascript" src="[%$url%]public/tinyMCE/tiny_mce.js"></script>
	<script type="text/javascript" src="[%$url%]js/forumcreate.js"></script>
	<script type="text/javascript" src="[%$url%]js/code/shCore.js"></script>
	<script type="text/javascript" src="[%$url%]js/code/shBrushBash.js"></script>
	<script type="text/javascript" src="[%$url%]js/code/shBrushCpp.js"></script>
	<script type="text/javascript" src="[%$url%]js/code/shBrushCSharp.js"></script>
	<script type="text/javascript" src="[%$url%]js/code/shBrushCss.js"></script>
	<script type="text/javascript" src="[%$url%]js/code/shBrushDiff.js"></script>
	<script type="text/javascript" src="[%$url%]js/code/shBrushJava.js"></script>
	<script type="text/javascript" src="[%$url%]js/code/shBrushJScript.js"></script>
	<script type="text/javascript" src="[%$url%]js/code/shBrushPhp.js"></script>
	<script type="text/javascript" src="[%$url%]js/code/shBrushSql.js"></script>
	<script type="text/javascript" src="[%$url%]js/code/shBrushXml.js"></script>
	<script type="text/javascript" src="[%$url%]js/code/shBrushAS3.js"></script>
	<script type="text/javascript" src="[%$url%]js/code/shBrushJavaFX.js"></script>
	<script type="text/javascript" src="[%$url%]js/code/shBrushColdFusion.js"></script>
	<script type="text/javascript">
	SyntaxHighlighter.config.clipboardSwf = "[%$url%]js/code/clipboard.swf";
	SyntaxHighlighter.all();
	var title_empty = "[%$lngpack.forum_title_err%]";
	var content_empty = "[%$lngpack.forum_content_err%]";
	var seccode_empty = "[%$lngpack.seescodeerr%]";
	</script>
		<div id="pageNav" class="maxWidth">
			<p>您现在的位置：首页 &raquo; [%$lngpack.forumtitle%] &raquo; <a href="[%$type.link%]">[%$type.typename%]</a> &raquo; <b>[%$read.title%]</b></p>
		</div>
        <div class="clearLine10"></div>
		<!--left-->
		<div class="maxWidth">
		<div id="framecenter">
        	<div class="forum">
			<table>
				<tr>
					<td class="zt">主题：（[%$read.labelname%]）[%$read.title%]</td>
				</tr>
				<tr>
					<td class="forumc">[%$read.content%]</td>
				</tr>
				<tr>
					<td class="status">作者：<u>[%$read.author%]</u></span>&nbsp; 发表时间：[%$read.addtime|timeformat(3)%]&nbsp; 阅读:[%$read.click%]&nbsp;&nbsp; 回复：[%$read.replynum%]</td>
				</tr>
				[% if count($array) > 0 %]
				[%forlist from=$array key=ii%]
				<tr>
					<td class="restatus">[%$array[ii].title%]</td>
				</tr>
				<tr>
					<td class="forumc">[%$array[ii].content%]</td>
				</tr>
				<tr>
					<td class="status">作者：<u>[%$array[ii].author%]</u></span>&nbsp; 发表时间：[%$array[ii].addtime|timeformat(4)%]</td>
				</tr>
				[%/forlist%]
				[%else%]
				<tr>
					<td><b>暂无人回复该主题！</b></td>
				</tr>
				[%/if%]
                [% if count($array) > 0 %]
				<tr>
					<td>
						<div class="pagelink">[%$pagebotton%]</div>
					</td>
				</tr>
				[%/if%]
			</table>
		</div>
        </div>
        </div>
		[%if $read.noreply==1%]
        <div class="maxWidth">
		<div id="framecenter">
			<div class="forum">
                <div class="filterorder">
                	<div class="filterbox">
                        <span class="t" style="padding-top:10px;"><img src="[%$url%]templates/greenhotel/images/comments.gif" /></span>
                        <span class="f">请在以下填写您的回复内容</span>
                	</div>
                </div>
						[%if $member.userid!=0 || $is_anonymous==1%]
						<form name="rebbsmainform" id="rebbsmainform" method="post" action="[%$mlink.forumsave%]" onsubmit="return reforumcreat('[%$bbs_isseccode%]')">
						<input type="hidden" name="inputclass" value="reinput">
						<input type="hidden" name="userid" value="[%$member.userid%]">
						<input type="hidden" name="nowuserid" value="[%$read.userid%]">
						<input type="hidden" name="linkebid" value="[%$read.bid%]">
						<input type="hidden" name="lng" value="[%$read.lng%]">
						<input type="hidden" name="btid" value="[%$read.btid%]">
						<input type="hidden" name="blid" value="[%$read.blid%]">
						<input type="hidden" name="purview" value="[%$read.purview%]">
						<input type="hidden" name="noreply" value="[%$read.noreply%]">
						<table>
							<tr>
								<td class="s1">主题</td>
								<td class="s2">
									<input type="text" name="title" maxlength="200" size="80" value="回复：[%$read.title%]" class="infoInput">
								</td>
							</tr>
							<tr>
								<td class="s1"></td>
								<td class="s2">
									<ul class="hrefbotton">
										<li><a class="linimage" href="javascript:;" onmousedown="tinyMCE.get('content').show();">显示编辑界面</a></li>
										<li><a class="linimage" href="javascript:;" onmousedown="tinyMCE.get('content').hide();">显示代码界面</a></li>
									</ul>
								</td>
							</tr>
							<tr>
								<td class="s1"></td>
								<td class="s2">
									<textarea name="content" rows="30" id="content" style="width: 98%" class="smallInput"></textarea>
								</td>
							</tr>
							[%if $bbs_isseccode==1%]
							<tr>
								<td class="s1">验证码</td>
								<td class="s2">
									<input type="text" id="code" name="seccode" maxlength="4" size="5" class="infoInput" style="text-transform: uppercase;"/>
									<img title="[%$lngpack.verification%]" id="seccodesrc" onclick="sessionimg('seccodesrc','[%$url%]')" src="[%$seccodelink%]" style="cursor: pointer;" align="absmiddle"/>
								</td>
							</tr>
							[%/if%]
							<tr>
								<td class="s1"></td>
								<td class="s2"><input type="submit" name="Submit" id="submit" value="确认回复" class="inputsubmit01"></td>
							</tr>
						</table>
						</form>
						[%else%]
						<table>
							<tr>
								<td>[%beark name=login class=$lng%]</td>
							</tr>
						</table>
						[%/if%]
					</td>
				</tr>
			</table>
		</div>
        </div>
        </div>
		[%/if%]
	[%elseif $out=='forumadd'%]
	<script type="text/javascript" src="[%$url%]public/tinyMCE/tiny_mce.js"></script>
	<script type="text/javascript" src="[%$url%]js/forumcreate.js"></script>
	<script type="text/javascript">
	var title_empty = "[%$lngpack.forum_title_err%]";
	var btid_empty = "[%$lngpack.forum_btid_err%]";
	var content_empty = "[%$lngpack.forum_content_err%]";
	var seccode_empty = "[%$lngpack.seescodeerr%]";
	</script>
	<div id="pageNav" class="maxWidth">
		<p>您现在的位置：首页 &raquo; [%$lngpack.forumtitle%] &raquo; <b>我要提问</b></p>
	</div>
	<!--left-->
    <div class="maxWidth">
	<div id="framecenter">
			<div class="forum">
		 <div class="filterorder">
                	<div class="filterbox">
							<span class="t" style="padding-top:8px;"><img src="[%$url%]templates/greenhotel/images/comments.gif" /></span>
							<span class="f">请在以下填写你要提问的内容</span>
        			</div>
        </div>
        
					<form name="bbsmainform" id="bbsmainform" method="post" action="[%$mlink.forumsave%]" onsubmit="return forumcreat('[%$bbs_isseccode%]')">
					<input type="hidden" name="upurl" value="[%$upurllist%]">
					<input type="hidden" name="inputclass" value="input">
					<input type="hidden" name="userid" value="[%$member.userid%]">
					<input type="hidden" name="lng" value="[%$lng%]">
					<table>
						<tr>
							<td class="s1">主题</td>
							<td class="s2"><input type="text" name="title" maxlength="200" size="80" class="infoInput"></td>
						</tr>
						<tr>
							<td class="s1">请选择分类</td>
							<td class="s2">
								<select size="1" name="btid" class="select" id="btid">
									<option value="0">选择分类</option>
									[%forlist from=$typelist key=i%]
									 <option [%$typelist[i].selected%] value="[%$typelist[i].btid%]">[%$typelist[i].typename%]</option>
									[%/forlist%]
								</select>
							</td>
						</tr>
						<tr>
							<td class="s1">提问类型</td>
							<td class="s2">
								 [%forlist from=$label key=i%]
								   <input type="radio" value="[%$label[i].blid%]" name="blid" [%if $label[i].selected=='selected'%]checked[%/if%]> [%$label[i].labelname%]&nbsp;
								 [%/forlist%]
							</td>
						</tr>
						<tr>
							<td class="s1">是否允许回复</td>
							<td class="s2"><input type="radio" value="1" name="noreply" checked> 是&nbsp;<input type="radio" value="0" name="noreply"> 否&nbsp;</td>
						</tr>
						<tr>
							<td class="s1" valign="top"></td>
							<td class="s2">
								<ul class="hrefbotton">
									<li><a class="linimage" href="javascript:;" onmousedown="tinyMCE.get('content').show();">显示编辑界面</a></li>
									<li><a class="linimage" href="javascript:;" onmousedown="tinyMCE.get('content').hide();">显示代码界面</a></li>
								</ul>
							</td>
						</tr>
						<tr>
							<td class="s1" valign="top">内容</td>
							<td class="s2">
								<textarea name="content" rows="30" id="content" style="width: 98%"></textarea>
							</td>
						</tr>
						[%if $bbs_isseccode==1%]
						<tr>
							<td class="s1">验证码</td>
							<td class="s2">
								<input type="text" id="code" name="seccode" maxlength="4" size="3"  class="infoInput" style="text-transform: uppercase;"/> <img title="[%$lngpack.verification%]" id="seccodesrc" onclick="sessionimg('seccodesrc','[%$url%]')" src="[%$seccodelink%]" style="cursor: pointer;" align="absmiddle"/>
							</td>
						</tr>
						[%/if%]
						<tr>
							<td colspan="2"><input name="submitsearch" type="submit" class="buttonface" value="确认提交"/></td>
						</tr>
					</table>
					</form>
	</div>
    </div>
    </div>
	[%/if%]
[%include file="greenhotel/cn/public/footer.html"%]
</body>

</html>
